using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ConversionTools._GPS
{
    /// <summary>
    /// <para>GPX To Features</para>
    /// <para>Converts the point information inside a GPX file to features.</para>
    /// <para>将 GPX 文件中的点信息转换为要素。</para>
    /// </summary>    
    [DisplayName("GPX To Features")]
    public class GPXtoFeatures : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public GPXtoFeatures()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_Input_GPX_File">
        /// <para>Input GPX File</para>
        /// <para>The GPX file to convert.</para>
        /// <para>要转换的 GPX 文件。</para>
        /// </param>
        /// <param name="_Output_Feature_class">
        /// <para>Output Feature class</para>
        /// <para>The feature class to create.</para>
        /// <para>要创建的要素类。</para>
        /// </param>
        public GPXtoFeatures(object _Input_GPX_File, object _Output_Feature_class)
        {
            this._Input_GPX_File = _Input_GPX_File;
            this._Output_Feature_class = _Output_Feature_class;
        }
        public override string ToolboxName => "Conversion Tools";

        public override string ToolName => "GPX To Features";

        public override string CallName => "conversion.GPXtoFeatures";

        public override List<string> AcceptEnvironments => ["scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_Input_GPX_File, _Output_Feature_class];

        /// <summary>
        /// <para>Input GPX File</para>
        /// <para>The GPX file to convert.</para>
        /// <para>要转换的 GPX 文件。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input GPX File")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _Input_GPX_File { get; set; }


        /// <summary>
        /// <para>Output Feature class</para>
        /// <para>The feature class to create.</para>
        /// <para>要创建的要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _Output_Feature_class { get; set; }


        public GPXtoFeatures SetEnv(object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}